using System;
using System.Xml.Linq;
namespace Senparc.Weixin.Open.Helpers
{
	public static class InfoTypeHelper
	{
		public static RequestInfoType GetRequestInfoType(XDocument doc)
		{
			return InfoTypeHelper.GetRequestInfoType(doc.Root.Element("InfoType").Value);
		}
		public static RequestInfoType GetRequestInfoType(string str)
		{
			return (RequestInfoType)Enum.Parse(typeof(RequestInfoType), str, true);
		}
	}
}
